#include <iostream>
#include <stdlib.h>
using namespace std;



int main (void){
	FILE *fp1,*fp2;
	fp1=fopen("d://a.txt","r");
	fp2=fopen("d://b.txt","w");
	if(fp1==NULL||fp2==NULL){
		cout<<"error";
		return 0;
	}
	char ch=fgetc(fp1);
	while(!feof(fp1)){
//		cout<<ch;
		fputc(ch,fp2);
		ch=fgetc(fp1);
	}
	cout<<"success";
	fclose(fp1);
	fclose(fp2);
	
	
	
}
